package com.test.serviceImpl;

import com.test.dao.HtongDao;
import com.test.entity.Htong;
import com.test.service.HtongService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class HtongServiceImpl implements HtongService {

    @Autowired
    HtongDao htongDao;

    @Override
    public List<Htong> selectAll() {
        return htongDao.selectAll();
    }

    @Override
    public List<Htong> selectByData(String startDate, String endDate) {
        return htongDao.selectByDate(startDate, endDate);
    }

    @Override
    public Htong selectBybhao(String bhao) {
        return htongDao.selectBybhao(bhao);
    }

    @Override
    public int addHtong(Htong htong) {
        return htongDao.addHtong(htong);
    }

    @Override
    public int updateHtong(Htong htong) {
        return htongDao.updateHtong(htong);
    }

    @Override
    public int delete(String bhao) {
        return htongDao.delete(bhao);
    }
}
